import avatarUser from '../assets/img/user.png';
export default {
  stage: {
    draft: 0,
    formal: 1,
    history: 2,
  },
  user: {
    avatar: {
      default: avatarUser,
    },
  },
  atoms: {
    resource: {
      render: {
        list: {
          info: {
            orders: [
              { name: 'resourceType', title: 'Resource Type', by: 'asc' },
              { name: 'resourceSorting', title: 'Resource Sorting', by: 'asc' },
            ],
          },
          layouts: {
            list: {},
            table: {
              blocks: {
                items: {
                  columns: [
                    {
                      dataIndex: 'atomName',
                      title: 'Atom Name',
                      align: 'left',
                      component: {
                        module: 'a-baselayout',
                        name: 'listLayoutTableCellAtomName',
                      },
                    },
                    {
                      dataIndex: 'resourceType',
                      title: 'Resource Type',
                      align: 'left',
                      component: {
                        module: 'a-basefront',
                        name: 'renderTableCellComputed',
                        options: {
                          props: {
                            expression: 'record.resourceTypeLocale',
                          },
                        },
                      },
                    },
                    {
                      dataIndex: 'atomCategoryNameLocale',
                      title: 'Category',
                      align: 'left',
                    },
                    {
                      dataIndex: 'userName',
                      title: 'Creator',
                      align: 'left',
                      component: {
                        module: 'a-baselayout',
                        name: 'listLayoutTableCellUserName',
                      },
                    },
                    {
                      dataIndex: 'createdAt',
                      title: 'Created Time',
                      align: 'left',
                    },
                    {
                      dataIndex: 'updatedAt',
                      title: 'Modification Time',
                      align: 'left',
                    },
                  ],
                },
              },
            },
          },
        },
      },
    },
  },
};
